package com.jfeat.am.module.wegou.services.persistence.model;

import java.io.Serializable;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2018-02-27
 */
@TableName("wg_product")
public class Product extends Model<Product> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 类别
     */
	@TableField("product_type_id")
	private Long productTypeId;
    /**
     * 封面
     */
	private String cover;
    /**
     * 缩略图
     */
	private String thumbnails;
    /**
     * 店铺ID
     */
	@TableField("store_id")
	private Long storeId;
    /**
     * 日文名称
     */
	private String name;
    /**
     * 中文名称
     */
	@TableField("zh_name")
	private String zhName;
    /**
     * 详情
     */
	private String details;
    /**
     * 中文详情
     */
	@TableField("zh_details")
	private String zhDetails;
    /**
     * 排序号
     */
	@TableField("sort_number")
	private Integer sortNumber;
    /**
     * 状态
     */
	private String status;
    /**
     * 价格（円）
     */
	private BigDecimal price;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getProductTypeId() {
		return productTypeId;
	}

	public void setProductTypeId(Long productTypeId) {
		this.productTypeId = productTypeId;
	}

	public String getCover() {
		return cover;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}

	public String getThumbnails() {
		return thumbnails;
	}

	public void setThumbnails(String thumbnails) {
		this.thumbnails = thumbnails;
	}

	public Long getStoreId() {
		return storeId;
	}

	public void setStoreId(Long storeId) {
		this.storeId = storeId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getZhName() {
		return zhName;
	}

	public void setZhName(String zhName) {
		this.zhName = zhName;
	}

	public String getDetails() {
		return details;
	}

	public void setDetails(String details) {
		this.details = details;
	}

	public String getZhDetails() {
		return zhDetails;
	}

	public void setZhDetails(String zhDetails) {
		this.zhDetails = zhDetails;
	}

	public Integer getSortNumber() {
		return sortNumber;
	}

	public void setSortNumber(Integer sortNumber) {
		this.sortNumber = sortNumber;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public static final String ID = "id";

	public static final String PRODUCT_TYPE_ID = "product_type_id";

	public static final String COVER = "cover";

	public static final String THUMBNAILS = "thumbnails";

	public static final String STORE_ID = "store_id";

	public static final String NAME = "name";

	public static final String ZH_NAME = "zh_name";

	public static final String DETAILS = "details";

	public static final String ZH_DETAILS = "zh_details";

	public static final String SORT_NUMBER = "sort_number";

	public static final String STATUS = "status";

	public static final String PRICE = "price";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Product{" +
			"id=" + id +
			", productTypeId=" + productTypeId +
			", cover=" + cover +
			", thumbnails=" + thumbnails +
			", storeId=" + storeId +
			", name=" + name +
			", zhName=" + zhName +
			", details=" + details +
			", zhDetails=" + zhDetails +
			", sortNumber=" + sortNumber +
			", status=" + status +
			", price=" + price +
			"}";
	}
}
